package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_chat_msg;

import cn.com.api.mapper.ApiU_chat_msgMapper;

import cn.com.api.service.ApiU_chat_msgService;

/**
 * 
 **/
@Service
public class U_chat_msgServiceImplBase {
	@Autowired
	private ApiU_chat_msgMapper apiU_chat_msgMapper;
    
    // 根据id获取
	public ApiU_chat_msg findU_chat_msgById(Integer id){
		ApiU_chat_msg u_chat_msg = apiU_chat_msgMapper.findU_chat_msgById( id );
		return u_chat_msg;
	}
    
    //查看数据集
	public List<ApiU_chat_msg> findU_chat_msgs(){
        List<ApiU_chat_msg> u_chat_msgs = apiU_chat_msgMapper.findU_chat_msgs();
		return u_chat_msgs;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_chat_msgsByMap(HashMap condition){
        List<Map<String, Object>> u_chat_msgs = apiU_chat_msgMapper.findU_chat_msgsByMap(condition);
		return u_chat_msgs;
    }
    
	// 添加
	public int insertU_chat_msg(ApiU_chat_msg u_chat_msg){
		int ret_I= apiU_chat_msgMapper.insertU_chat_msg(u_chat_msg);
		return ret_I;
	}

	// 修改
	public int updateU_chat_msg(ApiU_chat_msg u_chat_msg){
		int ret_I= apiU_chat_msgMapper.updateU_chat_msg(u_chat_msg);
		return ret_I;
	}
	
    // 删除
	public int deleteU_chat_msg(Integer id){
		int ret_I= apiU_chat_msgMapper.deleteU_chat_msg( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


